﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XRM.Security.DataAccess.Models
{
    [Table("RoleMember")]
    public class RoleMember
    {
        [Key, Column(Order=0)]
        public int UserId { get; set; }
        [Key, Column( Order = 1 )]
        public int RoleId { get; set; }

        public virtual SystemUser User { get; set; }
        public virtual Role Role { get; set; }
    }
}
